---
title: "SQL-003: Select a single task action code"
summary: Retrieve one TASK_ACTION_CODE row by code value.
status: draft
owner: SAIF Documentation
last_reviewed: 2026-08-21
library: SAIF.Business.Tasks
reference_type: embedded
---

# SQL-003 Select a single task action code

Retrieves one `TASK_ACTION_CODE` reference row by its `CODE` value, for translation/display in a single task's action code.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-003 |
| **Operation type** | Read |
| **Execution method** | Inline SQL |
| **Database** | Oracle |
| **Schema** | `[unqualified]`** |
| **Command type** | Text |
| **Business object** | `clsTaskActionCode` |
| **Criteria property** | `RetrieveSQL` |
| **Lifecycle method** | `BeforeRetrieve` / `AfterRetrieve` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:Code` | Input | String | 5 | `TASK_ACTION_CODE.CODE` to retrieve |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [TASK_ACTION_CODE](../database-tables.md#task_action_code) | SELECT | `CODE`, `CODE_DESCR` |

## Sample SQL

```sql
SELECT
  TASK_ACTION_CODE.CODE AS Code,
  TASK_ACTION_CODE.CODE_DESCR AS CodeDescr
FROM
  TASK_ACTION_CODE
WHERE
  TASK_ACTION_CODE.CODE = :Code
```

## Operations and processes
- [Load a code table](../operations/load-code-table.md)

## Business rules
- [BR-023: Code tables are read-only reference data](../business-rules.md#br-023-code-tables-are-read-only-reference-data)

## Sources
- SAIF.Business.Tasks/clsTaskActionCode.vb
